Skip to content

DART instrument Response Decimation Swapped in stages - #2518

Merged
salichon merged 9 commits into
mainfrom
DART_RespStageSwap
Nov 12, 2025
Merged

DART instrument Response Decimation Swapped in stages #2518
salichon merged 9 commits into
mainfrom
DART_RespStageSwap

Conversation

@salichon

@salichon salichon commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Adapt decimation stages for stationxml validation

salichon added 2 commits July 30, 2025 16:42
Swap DART response 15s  decimation stages to match stationxml validation
Swap DART Response decimation stages to match FDSNxml validation
@salichon salichon self-assigned this Jul 30, 2025
@salichon

Copy link
Copy Markdown
Contributor Author

Hi there !
as a start
something to grind on about the response of the DART
to make them validated by the IRIS /sage/gage/earthscope stationxml validator
https://github.com/iris-edu/stationxml-validator
some suggestion of Mark in the related ticket :)

@ozym @Thomas-Benson

@ozym

ozym commented Jul 31, 2025

Copy link
Copy Markdown
Contributor

I think we probably don't need the second stage. The only requirement is to swap between volts and counts, but these instruments don't record in volts.

@salichon
salichon marked this pull request as ready for review July 31, 2025 03:40
@salichon
salichon requested review from a team as code owners July 31, 2025 03:40
@salichon
salichon marked this pull request as draft July 31, 2025 03:41
@salichon

salichon commented Jul 31, 2025

Copy link
Copy Markdown
Contributor Author

Hi @ozym thanks i shortened the response to one single stage as a test.

  • This passes the fdsn stationxml validation as we set the sampling reference and input sample right

  • the problem i have further down the line (had it before for toast ...):

    Seiscomp .. does not to not accept/parse/convert entirely "a one stage only response" as produced by delta
    since it doesn't pick up a "sensor" information

    using scinv check test.xml :

Checking inventory ... done
I Stream NZ.NZA.40.UTZ
  no sensor and thus no response information available
I Stream NZ.NZA.41.UTZ
  no sensor and thus no response information available
I Stream NZ.NZA.42.UTZ
  no sensor and thus no response information available

i have attached the stationxml FDSN one stage as producef for NZA UTZ from delta
and the converted seiscomp station xml (scpxml)

test.scpxml.txt
test.xml.txt

cheers!

@ozym

ozym commented Jul 31, 2025

Copy link
Copy Markdown
Contributor

Okay, Plan B. Make the input sample rate for the second stage the same as the first (e.g. 0.06666666666666667) with a factor of 1. That is, no decimation.

@ozym

ozym commented Jul 31, 2025

Copy link
Copy Markdown
Contributor

You could also try -15 rather than 0.06666666666666667

@salichon

salichon commented Aug 1, 2025

Copy link
Copy Markdown
Contributor Author

Test -900 and -15

  • Our tests of -900 and -15 sampling ratea are passing our stationxml tools and the seiscomp parser/conversion checks.
  • Yet the java -jar stationxml-validator-1.7.5.jar test.xml --verbose --debug --continue-on-error test gives error 421:
    421,Error,NZ,NZA,WTZ,42,2023-12-16T00:15:00,,Chan:Samplerate 0.0011111111111111111 != [stage 02] Decimation:Frequency/Decimation:Factor -900.0

->Maybe the validator might also need an update to account for -900 and -15 sampling convention
(or respone not enough well formed) ?

test.xml.txt
test.scpxml.txt
test_OK_NZA.xml.txt


  • I updated the PR 0.0333 and 0.00111 sampling rate to passs the validation instead
    and it s ok for the seiscomp conversion tools too

  • ticket to IRIS for the java validator - though validator is not currwently maintained also it is set up for version 1.1

@salichon
salichon marked this pull request as ready for review August 3, 2025 21:41
@salichon
salichon requested review from Thomas-Benson and ozym August 4, 2025 02:52
@salichon

Copy link
Copy Markdown
Contributor Author

Kia Ora @Thomas-Benson @ozym
Could we have a last check on that PR for DART REsponse consistency ?
(no that this is used intensevely though)

@salichon salichon added dart DART based work enhancement New feature development work labels Oct 13, 2025
@salichon

Copy link
Copy Markdown
Contributor Author

As we move toward stationxml 1.2 it d be great to have this PR reviewed thanks!

@salichon

Copy link
Copy Markdown
Contributor Author

Hi @Thomas-Benson Would youhave a go at this
perhaps also using obspy tools ?
Thanks !

@Thomas-Benson Thomas-Benson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obspy looks happy with this for both stationxml 1.1 and 1.2

Channel 'UTZ', Location '40'
        Time range: 2019-12-22T00:00:00.000000Z - 2021-12-17T01:00:00.000000Z
        Latitude: -42.3707, Longitude: 176.9109, Elevation: 0.0 m, Local Depth: 0.0 m
        Azimuth: 0.00 degrees from north, clockwise
        Dip: 0.00 degrees down from horizontal
        Channel types: CONTINUOUS, GEOPHYSICAL
        Sampling Rate: 0.07 Hz
        Sensor (Description): Bottom Pressure Recorder (SAIC BPR Bottom Pressure Recorder)
        Response information available
Channel Response
        From m () to count ()
        Overall Sensitivity: 149254 defined at 0.030 Hz
        2 stages:
                Stage 1: CoefficientsTypeResponseStage from m to V, gain: 149254
                Stage 2: CoefficientsTypeResponseStage from V to count, gain: 1

@salichon

Copy link
Copy Markdown
Contributor Author

Hi @Thomas-Benson @ozym :)
as we went to stationxml 1.2 and that this PR is 4 months old
May i get a final review/
thansk :)

@salichon
salichon merged commit c4ff23d into main Nov 12, 2025
18 checks passed
@salichon
salichon deleted the DART_RespStageSwap branch November 12, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dart DART based work enhancement New feature development work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants